#ifndef DVREGIONEDITDIALOG_H
#define DVREGIONEDITDIALOG_H

#include <QDialog>
#include "dvDatabaseController.h"
#include "dvDatabaseControllerUsable.h"

namespace Ui {
class dvRegionEditDialog;
}

class dvRegionEditDialog : public QDialog, public dvDatabaseControllerUsable
{
    Q_OBJECT
    
public:
    explicit dvRegionEditDialog(QWidget *parent = 0);
    ~dvRegionEditDialog();
    void Initialize();

private:
    Ui::dvRegionEditDialog *ui;
    QTableView          *m_pTable;
    QSqlQueryModel      *m_pModel;

    void fillTable(QSqlQuery *query);

private slots:
    void clickedOk();
    void clickedCancel();
    void clickedAdd();
    void clickedEdit();
    void clickedDelete();
    void currentMapChanged(int index);
};

#endif // DVREGIONEDITDIALOG_H
